package cd.cdyb.sms.service;

import cd.cdyb.sms.domain.Signature;
import cd.cdyb.sms.dto.PageResult;
import cd.cdyb.sms.dto.expand.ExSignatureDto;
import cd.cdyb.sms.dto.query.SignatureQueryDto;
import cd.cdyb.sms.exception.BusinessException;

import java.util.List;
import java.util.Map;

public interface SignatureService {


    /**
     * 新增
     */
    void insertSignature(ExSignatureDto exSignatureDto) throws BusinessException;

    /**
     * 分页
     */
    PageResult<ExSignatureDto> findSignaturePage(SignatureQueryDto exSignatureDto);

    /**
     * 查询详情
     */
    Signature getSignatureById(Integer signatureId) throws BusinessException;

    /**
     * 首页签名统计
     */
    Map<String, Long> indexSignatureStatisticsWithClient(Integer companyId);

    /**
     * 列表
     */
    List<ExSignatureDto> findSignatureList(SignatureQueryDto exSignatureDto);
}
